<?php
/**
 * Created by b17
 * 2/16/12 8:18 PM
 */

namespace Managers\Decorators;

class UnfoundWords implements Decorator
{
    public function decorate(array $words)
    {
        $result = array();
        foreach ($words as $key => $word) {
            if ($word['docs'] == 0) {
                $result[] = $key;
            }
        }
        return $result;
    }
}
